#define _CRT_SECURE_NO_WARNINGS 1
#include"Tree.h"

int main()
{
	TreeNode* node1 = BuyNode(1);
	TreeNode* node2 = BuyNode(2);
	TreeNode* node3 = BuyNode(3);
	TreeNode* node4 = BuyNode(4);
	TreeNode* node5 = BuyNode(5);
	TreeNode* node6 = BuyNode(6);
	TreeNode* node7 = BuyNode(7);

	node1->left = node2;
	node1->right = node4;
	node2->left = node3;

	node4->left = node5;
	node4->right = node6;
	node2->right = node7;

	//PreOrder(node1);
	//InOrder(node1);
	//PostOrder(node1);
	//printf("%d\n", TreeSize(node1));
	//printf("%d\n", TreeHeight(node1));
	//printf("%d\n", BinaryTreeLeafSize(node1));

	//printf("%d ", TreeKLevel(node1, 4));
	//TreeLevelOrder(node1);
	printf("%d\n", BinaryTreeComplete(node1));
	return 0;
}